﻿#pragma strict

function Start () {

this.guiText.text=System.Convert.ToString(PlayerPrefs.GetInt("Hight Score"));

}

function OnGUI()
{

    var buttonWidth = 120;
    var buttonHeight = 60;
    if (
      GUI.Button(
        // Centré en x, 1/3 en y
        new Rect(Screen.width / 2 - (buttonWidth / 2),(1 * Screen.height / 3) - (buttonHeight / 2),
          buttonWidth,
          buttonHeight
        ),
        "Retry!"
      )
    )
    {	
    	Time.timeScale=1;
    	Application.LoadLevel(Application.loadedLevel);
    }
   }